/*
 * @Description:
 *
 * @Author: XiongYaoYuan<xiongyaoyuan>
 * @Date: 2023-06-05 14:29:31
 * @FilePath: /yuxiuproweb/src/api/process/production/index.js
 */
import request from "@/utils/request";

// 查询工序模型列表
export function listProcess(query) {
  return request({
    url: "/pro/process/list",
    method: "get",
    params: query,
  });
}

// 查询工序模型详细
export function getProcess(processId) {
  return request({
    url: "/pro/process/" + processId,
    method: "get",
  });
}

// 新增工序模型
export function addProcess(data) {
  return request({
    url: "/pro/process",
    method: "post",
    data: data,
  });
}

// 修改工序模型
export function updateProcess(data) {
  return request({
    url: "/pro/process",
    method: "put",
    data: data,
  });
}

// 删除工序模型
export function delProcess(processId) {
  return request({
    url: "/pro/process/" + processId,
    method: "delete",
  });
}

/** 新增加工方式-工序-中间 */
export function addProductProcess(data) {
  return request({
    url: "/pro/productProcess",
    method: "post",
    data: data,
  });
}

/** 查询加工方式-工序-中间列表 */
export function listProductProcess(query) {
  return request({
    url: "/pro/productProcess/list",
    method: "get",
    params: query,
  });
}
